/**
 * @ClassName Demo09
 * @Description: TODO
 * @Author: MaykkSTAR@163.com
 * @DATE: 2022/12/18 10:09
 */

import java.util.Scanner;
public class Demo09 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        int letterCount = 0;
        int spaceCount = 0;
        int numberCount = 0;
        int otherCount = 0;
        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(i);
            if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
                letterCount++;
            } else if (c == ' ') {
                spaceCount++;
            } else if (c >= '0' && c <= '9') {
                numberCount++;
            } else {
                otherCount++;
            }
        }
        System.out.println("英文字母：" + letterCount);
        System.out.println("空格：" + spaceCount);
        System.out.println("数字：" + numberCount);
        System.out.println("其他字符：" + otherCount);
    }
}
